package com.yxkj.syh.app.huarong.api;

import com.yxkj.syh.app.huarong.bean.Linkman;
import com.yxkj.syh.app.huarong.bean.PagesRequest;

import java.util.Map;

import io.reactivex.Observable;
import okhttp3.ResponseBody;
import retrofit2.http.Body;
import retrofit2.http.POST;
import retrofit2.http.Path;
import retrofit2.http.Query;

/**
 * 创建者：SYH
 * 时间：2020/6/1 20:00
 * 编辑者：SYH、
 * 标签：
 * 补充说明：
 */
public interface CommonApi {

    @POST("public/1/notice/page")
    Observable<ResponseBody> notice(@Body PagesRequest request);


    @POST("api/pur/supplier-info/findBy")
    Observable<ResponseBody> linkList(@Body PagesRequest request);

    @POST("api/logistics/car/map")
    Observable<ResponseBody> carList();

    @POST("api/pur/supplier-info/findInfo/{id}")
    Observable<ResponseBody> linkInfo(@Path("id") long id);

    @POST("api/pur/supplier-info/save")
    Observable<ResponseBody> saveLinkman(@Body Linkman linkman);

    @POST("api/logistics/location/findBy")
    Observable<ResponseBody> getCommonAddress(@Body PagesRequest request);

    @POST("api/logistics/order/matchToOrderLocation")
    Observable<ResponseBody> returnCarGetAddress();

    @POST("api/logistics/car/findInfo/{carId}")
    Observable<ResponseBody> carInfo(@Path("carId")String carId);


    @POST("api/huarong/message/findBy")
    Observable<ResponseBody> msgList(@Body PagesRequest request);
    @POST("public/1/app/version")
    Observable<ResponseBody> versionCheck( @Query("packName") String packName,@Query("platform") int platform);
}
